#region

using System.Collections.Generic;

#endregion

namespace EditeurSyntaxiqueVocal.Configuration
{
    #region Class CompareMot
    public class CompareMot : IComparer<string[]>
    {
        #region Champs
        private readonly int pos;
        #endregion

        #region Constructeur
        /// <summary>
        /// Initialise une nouvelle instance de la classe <see cref="T:System.Object"></see>.
        /// </summary>
        public CompareMot(int pos)
        {
            this.pos = pos;
        }
        #endregion

        #region IComparer<string[]> Members

        public int Compare(string[] x, string[] y)
        {
            return x[pos].CompareTo(y[pos]);
        }

        #endregion

        #region IComparer<string[]> Membres

        int IComparer<string[]>.Compare(string[] x, string[] y)
        {
            return x[pos].CompareTo(y[pos]);
        }

        #endregion
    } 
    #endregion
}